package com.neu.elm.service.impl;

import com.neu.elm.mapper.CartMapper;
import com.neu.elm.po.Cart;
import com.neu.elm.service.CartService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author:csw
 * @Date: 16:44 2020/9/15
 */
@Service
public class CartServiceImpl implements CartService {

    @Resource
    private CartMapper cartMapper;

    @Override
    public List<Cart> listCart(Cart cart) {
        return cartMapper.listCart(cart);
    }

    @Override
    public int saveCart(Cart cart) {
        return cartMapper.saveCart(cart);
    }

    @Override
    public int updateCart(Cart cart) {
        return cartMapper.updateCart(cart);
    }

    @Override
    public int remoceCart(Cart cart) {
        return cartMapper.removeCart(cart);
    }
}
